#pragma once
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>

typedef void (*os_cb)();

typedef struct {
  os_cb   thread;
  uint32_t cycle;
  uint32_t last_time;
} OS_TICKET_THREAD_T;

bool os_create_thread(os_cb thread, uint32_t cycle_ms);
void os_thread_start(void);
